www.gusucode.com > TinyShop PHP开源商城系统 v1.0.3PHP源码程序 > TinyShop PHP开源商城系统 v1.0.3/TinyShop_v1.0.3/TinyShop_v1.0.3/static/css/fonts/lte-ie7.js

    /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */

window.onload = function() {
	function addIcon(el, entity) {
		var html = el.innerHTML;
		el.innerHTML = '<span style="font-family: \'icomoon\'">' + entity + '</span>' + html;
	}
	var icons = {
			'icon-home' : '&#xe000;',
			'icon-pencil' : '&#xe001;',
			'icon-image' : '&#xe002;',
			'icon-connection' : '&#xe003;',
			'icon-book' : '&#xe004;',
			'icon-profile' : '&#xe005;',
			'icon-folder' : '&#xe006;',
			'icon-folder-open' : '&#xe007;',
			'icon-tag' : '&#xe008;',
			'icon-tags' : '&#xe009;',
			'icon-barcode' : '&#xe00a;',
			'icon-qrcode' : '&#xe00b;',
			'icon-ticket' : '&#xe00c;',
			'icon-cart' : '&#xe00d;',
			'icon-cart-2' : '&#xe00e;',
			'icon-cart-3' : '&#xe00f;',
			'icon-coin' : '&#xe010;',
			'icon-credit' : '&#xe011;',
			'icon-phone' : '&#xe012;',
			'icon-phone-hang-up' : '&#xe013;',
			'icon-image-2' : '&#xe014;',
			'icon-images' : '&#xe015;',
			'icon-pencil-2' : '&#xe016;',
			'icon-quill' : '&#xe017;',
			'icon-location' : '&#xe018;',
			'icon-location-2' : '&#xe019;',
			'icon-compass' : '&#xe01a;',
			'icon-alarm' : '&#xe01b;',
			'icon-alarm-2' : '&#xe01c;',
			'icon-calendar' : '&#xe01d;',
			'icon-print' : '&#xe01e;',
			'icon-drawer' : '&#xe01f;',
			'icon-drawer-2' : '&#xe020;',
			'icon-drawer-3' : '&#xe021;',
			'icon-box-add' : '&#xe022;',
			'icon-box-remove' : '&#xe023;',
			'icon-download' : '&#xe024;',
			'icon-upload' : '&#xe025;',
			'icon-undo' : '&#xe028;',
			'icon-redo' : '&#xe029;',
			'icon-forward' : '&#xe02a;',
			'icon-reply' : '&#xe02b;',
			'icon-bubble' : '&#xe026;',
			'icon-bubbles' : '&#xe027;',
			'icon-bubbles-2' : '&#xe02c;',
			'icon-bubble-2' : '&#xe02d;',
			'icon-bubbles-3' : '&#xe02e;',
			'icon-bubbles-4' : '&#xe02f;',
			'icon-user' : '&#xe030;',
			'icon-users' : '&#xe031;',
			'icon-user-2' : '&#xe032;',
			'icon-users-2' : '&#xe033;',
			'icon-user-3' : '&#xe034;',
			'icon-user-4' : '&#xe035;',
			'icon-quotes-left' : '&#xe036;',
			'icon-busy' : '&#xe037;',
			'icon-spinner' : '&#xe038;',
			'icon-spinner-2' : '&#xe039;',
			'icon-spinner-3' : '&#xe03a;',
			'icon-spinner-4' : '&#xe03b;',
			'icon-spinner-5' : '&#xe03c;',
			'icon-spinner-6' : '&#xe03d;',
			'icon-search' : '&#xe03e;',
			'icon-zoom-in' : '&#xe03f;',
			'icon-zoom-out' : '&#xe040;',
			'icon-expand' : '&#xe041;',
			'icon-contract' : '&#xe042;',
			'icon-expand-2' : '&#xe043;',
			'icon-contract-2' : '&#xe044;',
			'icon-key' : '&#xe045;',
			'icon-key-2' : '&#xe046;',
			'icon-lock' : '&#xe047;',
			'icon-lock-2' : '&#xe048;',
			'icon-unlocked' : '&#xe049;',
			'icon-wrench' : '&#xe04a;',
			'icon-settings' : '&#xe04b;',
			'icon-equalizer' : '&#xe04c;',
			'icon-cog' : '&#xe04d;',
			'icon-cogs' : '&#xe04e;',
			'icon-cog-2' : '&#xe04f;',
			'icon-hammer' : '&#xe050;',
			'icon-wand' : '&#xe051;',
			'icon-aid' : '&#xe052;',
			'icon-bug' : '&#xe053;',
			'icon-pie' : '&#xe054;',
			'icon-stats' : '&#xe055;',
			'icon-bars' : '&#xe056;',
			'icon-bars-2' : '&#xe057;',
			'icon-gift' : '&#xe058;',
			'icon-trophy' : '&#xe059;',
			'icon-glass' : '&#xe05a;',
			'icon-leaf' : '&#xe05b;',
			'icon-fire' : '&#xe05c;',
			'icon-remove' : '&#xe05d;',
			'icon-remove-2' : '&#xe05e;',
			'icon-briefcase' : '&#xe05f;',
			'icon-truck' : '&#xe060;',
			'icon-shield' : '&#xe061;',
			'icon-lightning' : '&#xe062;',
			'icon-switch' : '&#xe063;',
			'icon-power-cord' : '&#xe064;',
			'icon-signup' : '&#xe065;',
			'icon-list' : '&#xe066;',
			'icon-list-2' : '&#xe067;',
			'icon-numbered-list' : '&#xe068;',
			'icon-menu' : '&#xe069;',
			'icon-menu-2' : '&#xe06a;',
			'icon-tree' : '&#xe06b;',
			'icon-cloud-download' : '&#xe06c;',
			'icon-cloud-upload' : '&#xe06d;',
			'icon-cloud' : '&#xe06e;',
			'icon-download-2' : '&#xe06f;',
			'icon-upload-2' : '&#xe070;',
			'icon-download-3' : '&#xe071;',
			'icon-upload-3' : '&#xe072;',
			'icon-globe' : '&#xe073;',
			'icon-earth' : '&#xe074;',
			'icon-link' : '&#xe075;',
			'icon-flag' : '&#xe076;',
			'icon-attachment' : '&#xe077;',
			'icon-eye' : '&#xe078;',
			'icon-eye-blocked' : '&#xe079;',
			'icon-eye-2' : '&#xe07a;',
			'icon-bookmark' : '&#xe07b;',
			'icon-bookmarks' : '&#xe07c;',
			'icon-brightness-medium' : '&#xe07d;',
			'icon-brightness-contrast' : '&#xe07e;',
			'icon-contrast' : '&#xe07f;',
			'icon-star' : '&#xe080;',
			'icon-star-2' : '&#xe081;',
			'icon-star-3' : '&#xe082;',
			'icon-heart' : '&#xe083;',
			'icon-heart-2' : '&#xe084;',
			'icon-heart-broken' : '&#xe085;',
			'icon-thumbs-up' : '&#xe086;',
			'icon-thumbs-up-2' : '&#xe087;',
			'icon-happy' : '&#xe088;',
			'icon-happy-2' : '&#xe089;',
			'icon-point-up' : '&#xe08a;',
			'icon-point-right' : '&#xe08b;',
			'icon-point-down' : '&#xe08c;',
			'icon-point-left' : '&#xe08d;',
			'icon-warning' : '&#xe08e;',
			'icon-notification' : '&#xe08f;',
			'icon-question' : '&#xe090;',
			'icon-info' : '&#xe091;',
			'icon-info-2' : '&#xe092;',
			'icon-blocked' : '&#xe093;',
			'icon-cancel-circle' : '&#xe094;',
			'icon-checkmark-circle' : '&#xe095;',
			'icon-spam' : '&#xe096;',
			'icon-close' : '&#xe097;',
			'icon-checkmark' : '&#xe098;',
			'icon-checkmark-2' : '&#xe099;',
			'icon-spell-check' : '&#xe09a;',
			'icon-minus' : '&#xe09b;',
			'icon-plus' : '&#xe09c;',
			'icon-enter' : '&#xe09d;',
			'icon-exit' : '&#xe09e;',
			'icon-loop' : '&#xe09f;',
			'icon-loop-2' : '&#xe0a0;',
			'icon-loop-3' : '&#xe0a1;',
			'icon-shuffle' : '&#xe0a2;',
			'icon-checkbox-checked' : '&#xe0a3;',
			'icon-radio-checked' : '&#xe0a4;',
			'icon-checkbox-partial' : '&#xe0a5;',
			'icon-radio-unchecked' : '&#xe0a6;',
			'icon-checkbox-unchecked' : '&#xe0a7;',
			'icon-crop' : '&#xe0a8;',
			'icon-scissors' : '&#xe0a9;',
			'icon-table' : '&#xe0aa;',
			'icon-file-openoffice' : '&#xe0ab;',
			'icon-file-word' : '&#xe0ac;',
			'icon-file-excel' : '&#xe0ad;',
			'icon-file-zip' : '&#xe0ae;',
			'icon-file-powerpoint' : '&#xe0af;',
			'icon-file-xml' : '&#xe0b0;',
			'icon-file-css' : '&#xe0b1;',
			'icon-chrome' : '&#xe0b2;',
			'icon-firefox' : '&#xe0b3;',
			'icon-IE' : '&#xe0b4;',
			'icon-opera' : '&#xe0b5;',
			'icon-safari' : '&#xe0b6;',
			'icon-IcoMoon' : '&#xe0b7;',
			'icon-paypal' : '&#xe0b8;',
			'icon-paypal-2' : '&#xe0b9;',
			'icon-paypal-3' : '&#xe0ba;',
			'icon-delicious' : '&#xe0bb;',
			'icon-linkedin' : '&#xe0bc;',
			'icon-github' : '&#xe0bd;',
			'icon-github-2' : '&#xe0be;',
			'icon-code' : '&#xe0bf;',
			'icon-embed' : '&#xe0c0;',
			'icon-console' : '&#xe0c1;',
			'icon-indent-increase' : '&#xe0c2;',
			'icon-indent-decrease' : '&#xe0c3;',
			'icon-new-tab' : '&#xe0c4;',
			'icon-paragraph-justify' : '&#xe0c5;',
			'icon-paragraph-right' : '&#xe0c6;',
			'icon-paragraph-center' : '&#xe0c7;',
			'icon-paragraph-left' : '&#xe0c8;',
			'icon-paragraph-justify-2' : '&#xe0c9;',
			'icon-paragraph-right-2' : '&#xe0ca;',
			'icon-paragraph-center-2' : '&#xe0cb;',
			'icon-paragraph-left-2' : '&#xe0cc;',
			'icon-google-plus' : '&#xe0cd;',
			'icon-arrow-left' : '&#xe0ce;',
			'icon-arrow-down-left' : '&#xe0cf;',
			'icon-arrow-down' : '&#xe0d0;',
			'icon-arrow-down-right' : '&#xe0d1;',
			'icon-arrow-right' : '&#xe0d2;',
			'icon-arrow-up-right' : '&#xe0d3;',
			'icon-arrow-up-left' : '&#xe0d4;',
			'icon-arrow-up' : '&#xe0d5;',
			'icon-arrow-left-2' : '&#xe0d6;',
			'icon-arrow-down-left-2' : '&#xe0d7;',
			'icon-arrow-down-2' : '&#xe0d8;',
			'icon-arrow-down-right-2' : '&#xe0d9;',
			'icon-arrow-right-2' : '&#xe0da;',
			'icon-arrow-up-right-2' : '&#xe0db;',
			'icon-arrow-up-2' : '&#xe0dc;',
			'icon-arrow-up-left-2' : '&#xe0dd;',
			'icon-stack' : '&#xe0de;',
			'icon-envelop' : '&#xe0df;',
			'icon-storage' : '&#xe0e0;',
			'icon-tab' : '&#xe0e1;'
		},
		els = document.getElementsByTagName('*'),
		i, attr, html, c, el;
	for (i = 0; ; i += 1) {
		el = els[i];
		if(!el) {
			break;
		}
		attr = el.getAttribute('data-icon');
		if (attr) {
			addIcon(el, attr);
		}
		c = el.className;
		c = c.match(/icon-[^\s'"]+/);
		if (c && icons[c[0]]) {
			addIcon(el, icons[c[0]]);
		}
	}
};